package com.itheima.commonsio;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

public class CommonsioDemo1 {
    public static void main(String[] args) throws IOException {
        File f1 = new File("myio\\a.txt");
        File f2 = new File("myio\\b.txt");

        //FileUtils.copyFile(f1, f2);

        //FileUtils.copyDirectoryToDirectory(new File("D:\\Java\\bbb"), new File("D:\\Java\\bbb2"));

        FileUtils.deleteDirectory(new File("D:\\Java\\ccc"));





    }
}
